//
// Created by 李传智 on 2018/4/14.
//

#ifndef ANDSDK_FFRESAMPLE_H
#define ANDSDK_FFRESAMPLE_H


#include "IResample.h"

struct SwrContext;

class FFResample : public IResample {

public:

    virtual bool open(CodecParameter in, CodecParameter out = CodecParameter());

    virtual VideoData resample(VideoData videoData);

    virtual void close();

protected:

    SwrContext *swrContext;

    std::mutex mutex;
};


#endif //ANDSDK_FFRESAMPLE_H
